﻿<%@ Page Title="" Language="C#" MasterPageFile="MasterPage.master" AutoEventWireup="true" CodeFile="Report.aspx.cs" Inherits="Home" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder2" Runat="Server">
    <div class="choice-category">
        <ul>
            <li><a style="background:url('./img/customer_icon.png') no-repeat scroll 30px 20px transparent;" href="AddCustomer.aspx">Add Customer</a></li>
            <li><a style="background:url('./img/service.png') no-repeat scroll 30px 15px transparent;" href="AddService.aspx">Add Service</a></li>
            <li><a style="background:url('./img/sub-service.png') no-repeat scroll 30px 15px transparent;" href="AddSubService.aspx">Add SubService</a></li>
            <li><a style="background:url('./img/payment.png') no-repeat scroll 30px 15px transparent;" href="AddService.aspx">Add Service</a></li>
            <li><a style="background:url('./img/hoadon.png') no-repeat scroll 30px 15px transparent;" href="Report.aspx">Report</a></li>
        </ul>
    </div>
    <div class="orders-most" style="float:left;margin-top:20px;">
        
        <div class="orders-title" style="background: #E9E9E9; width: 740px; color: #222222; font-weight: bold; padding: 10px; border-bottom: 1px solid rgb(204, 204, 204);">
            <asp:Label ID="Label1" runat="server" Text="From :"></asp:Label>
            <asp:TextBox ID="txtFrom" runat="server" TextMode="Date"></asp:TextBox>
            <asp:Label ID="Label2" runat="server" Text="To :"></asp:Label>
            <asp:TextBox ID="txtTo" runat="server" TextMode="Date"></asp:TextBox>
            <asp:Button ID="Button1" runat="server" Text="Search" OnClick="Button1_Click" />
        </div>
        <div class="orders-title" style="background:#E9E9E9;width:740px;color:#222222;font-weight:bold;padding:10px;border-bottom:1px solid rgb(204, 204, 204);">Report</div>
        <table style="width:40%;">
            <tr>
                <td>
        <asp:Label ID="Label3" runat="server" Text="Total order contract :" style="font-weight: 700"></asp:Label></td>
                <td> <asp:Label ID="lbTotalContract" runat="server"></asp:Label></td>
                <td>
                    <asp:Button ID="btnTotalDetail" runat="server" Text="Detail" OnClick="btnTotalDetail_Click" />
                </td>
            </tr>
            <tr>
                <td>
        <asp:Label ID="Label5" runat="server" Text="Active :" style="font-weight: 700"></asp:Label></td>
                <td> <asp:Label ID="lbContractActive" runat="server"></asp:Label></td>
                <td>
                    <asp:Button ID="btnActiveDetail" runat="server" Text="Detail" OnClick="btnActiveDetail_Click" />
                </td>
            </tr>
            <tr>
                <td>
        <asp:Label ID="Label7" runat="server" Text="Cancel :" style="font-weight: 700"></asp:Label></td>
                <td> <asp:Label ID="lbContractCancel" runat="server"></asp:Label>
                </td>
                <td>
                    <asp:Button ID="btnCancelDetail" runat="server" Text="Detail" OnClick="btnCancelDetail_Click" />
                </td>
            </tr>
        </table>
        <div class="orders-title" style="background:#E9E9E9;width:740px;color:#222222;font-weight:bold;padding:10px;border-bottom:1px solid rgb(204, 204, 204);">Detail</div>
        <asp:GridView ID="GridView2" runat="server" AutoGenerateColumns="False" DataKeyNames="ContractID" AllowPaging="True" OnPageIndexChanging="GridView2_PageIndexChanging">
            <Columns>
                <asp:BoundField DataField="ContractID" HeaderText="ContractID">
                <ItemStyle Width="30px" />
                </asp:BoundField>
                <asp:BoundField DataField="CustomerID" HeaderText="CustomerID" />
                <asp:BoundField DataField="CustomerName" HeaderText="Name" />
                <asp:BoundField DataField="Phone" HeaderText="Phone" />
                <asp:BoundField DataField="Email" HeaderText="Email" />
                <asp:BoundField DataField="DateCreate" HeaderText="Date Create" DataFormatString="{0:d}" />
                <asp:BoundField DataField="DateActive" HeaderText="Date Active" DataFormatString="{0:d}"/>
                <asp:BoundField DataField="Status" HeaderText="Status" />
                <asp:ButtonField ButtonType="Button" HeaderText="#" Text="Detail" CommandName="select" />
            </Columns>
        </asp:GridView>
    </div>
</asp:Content>

    